package prototype.nodesign;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Student{

    private String name;

    private Integer classid;

    private List<String> course = new ArrayList<>();

    public Student(String name, Integer classid) throws InterruptedException {
        this.name = name;
        this.classid = classid;
        //模拟业务逻辑操作消耗10ms
        Thread.sleep(10);
        course.add("语文");
        course.add("数学");
        course.add("英语");
    }
}
